<?php defined('SYSPATH') or die('No direct access allowed.');

class Controller_ClientTemplate extends Controller_Template
{
    public $template = 'template';
    
    public function before()
    {
        parent::before();        
        
        
        if ($this->auto_render)
  	{
  	    $this->template->title   = '';
            $this->template->description   = '';
            $this->template->keywords   = '';
  	    $this->template->content = '';
              			
  	    $this->template->styles = array();
            $this->template->scripts = array();
        }
        
    }    

    
    public function after()
    {
        if ($this->auto_render)
	{
	    $styles = array(
		'css/reset.css' => 'screen',
		'css/general.css' => 'screen',
            );
  
	    $scripts = array(
		'js/jquery-1.4.2.min.js',
            );
            		
            $this->template->styles = array_merge( $this->template->styles, $styles );
            $this->template->scripts = array_merge( $this->template->scripts, $scripts );
	}
    
        parent::after();   
    }
}